package com.czk.sample;

/**
 * 生成HelloWorld
 *
 * @Author:ChenZhangKun
 * @Date: 2021/7/19 23:28
 */
public class HelloWorldRun {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        MyClassLoader myClassLoader = new MyClassLoader();
        Class<?> clazz = myClassLoader.loadClass("com.czk.sample.HelloWorld");
        Object o = clazz.newInstance();
        System.out.println(o.getClass());
        System.out.println(o);
    }
}
